package com.source.lightfowl.basedata.service;

import com.source.lightfowl.basedata.entity.BarcodeMachineMsg;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Optional;

/**
 * @Author: xcy
 * @Date:Create：in 2020/9/27 11:01
 * @Description:
 */
public interface BarcodeMachineMsgService {
    //3.3查
    List<BarcodeMachineMsg> findAll();
    //3.2查 分页
    Page<BarcodeMachineMsg> findAllPage(int page, int pageNum);
    //3.1查找根据id查找
    Optional<BarcodeMachineMsg> findById(String id);

    //1.增 或者改
    void save(BarcodeMachineMsg sh, MultipartFile file, HttpServletRequest request) throws Exception;

    //2.1删
    void deleteById(String id);
    //2.2批量删
    void deleteBatch(String ids);

    Long getCount();

    void deleteImage(String ids);

    void cascadingDeleteById(String id);
}
